<%@ page language="java" contentType="text/html;charset=utf-8" pageEncoding="utf-8"%>

<%@ include file="/core/taglibs.jsp"%>
<!DOCTYPE html>
<html lang="zh-CN">
  
<head>
 	<%@ include file="/core/memberMeta.jsp"%>
	<script type="text/javascript"> 
		var checkSubmitFlg = false; 
		
		
		function checkSubmit() {  
			if ($("#num").val() == "") {
				alert("请输入购买数。");
				 
				return false;
			}  
			
			 
			if ($("#twoPassword").val() == "") {
				alert("请输入安全密码。");
			 
				return false;
			}
			
			if (checkSubmitFlg == true) {   
				return false;   
			}   
			checkSubmitFlg = true;   
			return true;   
		}   
		document.ondblclick = function docondblclick() {   
			window.event.returnValue = false;   
		}   
		document.onclick = function doconclick() {   
			if (checkSubmitFlg) {   
				window.event.returnValue = false;   
			}   
		}   
	</script>
</head>

<body data-type="widgets">
    <script src="<%=basePath%>/resources/memberCss/assets/js/theme.js"></script>
    <div class="am-g tpl-g">
        
        <!-- 内容区域 -->
        <div class="tpl-content-wrapper">

            <div class="container-fluid am-cf">
                <div class="row">
                    <div class="am-u-sm-12 am-u-md-12 am-u-lg-9">
                        <div class="page-header-heading"><span class="am-icon-key page-header-heading-icon"></span> 购买矿点</div>
                        <p class="page-header-description">欢迎光临BHP必和必拓矿业投资中国区</p>
                    </div>
                     
                </div>

            </div>

            <div class="row-content am-cf">

                <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                    <div class="widget am-cf">
                        <div class="widget-head am-cf">
                            <div class="widget-title am-fl">购买矿点</div>
                            <div class="widget-function am-fr">
                                <a href="javascript:;" class="am-icon-cog"></a>
                            </div>
                        </div>
                        <div class="widget-body am-fr">

                            <form class="am-form tpl-form-border-form tpl-form-border-br" action="<%=basePath%>/member/kuang/kuangBuy.shtml" method="post" onsubmit="return checkSubmit();" >
                                <div class="am-form-group">
                                    <label for="user-name" class="am-u-sm-3 am-form-label">我的现金币：</label>
                                     
                                    <label for="user-name" class=" am-form-label" style="text-align: left;">
                                       &nbsp;&nbsp;&nbsp;${member.money}
                                    </label>
                                </div>
                                
                                <div class="am-form-group">
                                    <label for="user-name" class="am-u-sm-3 am-form-label">数量：</label>
                                    <div class="am-u-sm-9">
                                      	<input type="text"  id="num" name="num" class="tpl-form-input" placeholder="请输入购买数"  />
									
                                        
                                    </div>
                                </div>
                                <div class="am-form-group">
                                    <label for="user-name" class="am-u-sm-3 am-form-label">使用币种：</label>
                                    <div class="am-u-sm-9">
                                       
                                        <select data-am-selected="{searchBox: 1}"  id="wageType" name="wageType" >
											<option value="10">现金币</option>
										   	 
										</select>
                                        
                                    </div>
                                </div>

                                 
		                        <div class="am-form-group">
		                        	<label for="user-email" class="am-u-sm-3 am-form-label">矿点信息：</label>
		                        	 
                                    <label for="user-name" class=" am-form-label" style="text-align: left;">
                                       &nbsp;&nbsp;&nbsp;每个矿点价格为：${paramWage1003}，每日产矿数为：${paramWage1002}
                                    </label>
		                        </div>
		                        
							 
		                        <div class="am-form-group">
		                        	<label for="user-email" class="am-u-sm-3 am-form-label">安全密码： </label>
		                        	<div class="am-u-sm-9">
		                            	<input type="password"  id="twoPassword" name="twoPassword" class="tpl-form-input"/>
		                            </div>
		                        </div>
		                        <div class="am-form-group" >
		                        	<div class="am-u-sm-9" style="text-align: center;color: #ffff00;">
		                        		${retMsg}
		                        	</div>
		                        </div>

                                 
                                 <div class="am-form-group">
                                     <div class="am-u-sm-9 am-u-sm-push-3">
                                         <button type="submit" class="am-btn am-btn-primary tpl-btn-bg-color-success ">提交</button>
                                     </div>
                                 </div>
                             </form>
                         </div>
                     </div>
                 </div>
             </div>
        </div>
    </div>
    </div>
    <script src="<%=basePath%>/resources/memberCss/assets/js/amazeui2.min.js"></script>
    <script src="<%=basePath%>/resources/memberCss/assets/js/amazeui.datatables.min.js"></script>
    <script src="<%=basePath%>/resources/memberCss/assets/js/dataTables.responsive.min.js"></script>
    <script src="<%=basePath%>/resources/memberCss/assets/js/app.js"></script>

</body>


